package com.example.shop_2304.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.OrderDetail
import com.example.shop_2304.R
import com.example.shop_2304.utils.GlideUtils

class GetPreAdapter:BaseQuickAdapter<OrderDetail,BaseViewHolder>(R.layout.item_preorder) {
    override fun convert(holder: BaseViewHolder, item: OrderDetail) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.car_image))
        holder.setText(R.id.car_storename,item.productName)
        holder.setText(R.id.car_sku,item.sku)
        holder.setText(R.id.car_price,"￥${item.price}")
        holder.setText(R.id.car_num,"X ${item.payNum}")
    }
}